<?php
class Group extends AppModel
{
	public $actsAs = array('Acl' => 'requester');

	public $validate = array(
		'groupname' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	public $hasMany = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'group_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

	public function parentNode()
	{
		return null;
	}

	public function getDefaultGroups()
	{
		return array('administrators', 'managers', 'users');
	}
}
?>
